package aes

import (
	"bytes"
	"crypto/aes"
	"crypto/cipher"
	"encoding/base64"
	"encoding/hex"
	"fmt"
)

//
func PKCS7Padding(ciphertext []byte, blockSize int) []byte {
	padding := blockSize - len(ciphertext)%blockSize
	padtext := bytes.Repeat([]byte{byte(padding)}, padding)
	return append(ciphertext, padtext...)
}

func PKCS7UnPadding(origData []byte) []byte {
	length := len(origData)
	unpadding := int(origData[length-1])
	return origData[:(length - unpadding)]
}

//AesEncrypt 加密函数
func AesEncrypt(plaintext []byte, key, iv []byte) ([]byte, error) {
	block, err := aes.NewCipher(key)
	if err != nil {
		return nil, err
	}
	blockSize := block.BlockSize()
	plaintext = PKCS7Padding(plaintext, blockSize)
	blockMode := cipher.NewCBCEncrypter(block, iv)
	crypted := make([]byte, len(plaintext))
	blockMode.CryptBlocks(crypted, plaintext)
	return crypted, nil
}

// AesDecrypt 解密函数
func AesDecrypt(ciphertext []byte, key, iv []byte) ([]byte, error) {
	block, err := aes.NewCipher(key)
	if err != nil {
		return nil, err
	}
	blockSize := block.BlockSize()
	blockMode := cipher.NewCBCDecrypter(block, iv[:blockSize])
	origData := make([]byte, len(ciphertext))
	blockMode.CryptBlocks(origData, ciphertext)
	origData = PKCS7UnPadding(origData)
	return origData, nil
}

func main() {
	key := []byte("jo8j9wGw%6HbxfFn")
	iv := []byte("0123456789ABCDEF")
	plaintext := []byte("{\"code\":200,\"data\":{\"list\":[{\"PROJOWNER\":\"甘肃电投金昌发电有限责任公司\",\"ISSUAUTHCODE\":\"11620321013910935J\",\"PCOMPDATE\":\"2022-01-20\",\"CITYNUM\":\"金昌市\",\"PSTARTDATE\":\"2021-05-12\",\"ANNEXREMARK\":null,\"PROJNAME\":\"甘肃电投金昌发电公司永昌县热电联供项目热源配套工程\",\"PRJTYPENUM\":\"房屋建筑工程\",\"ECERTID\":\"1.2.156.3005.2.11100000000013338W009.11620321013910935J.2021122301.001.U\",\"PROJOWNERCODE\":\"91620321675912083H\",\"TOTALUHAREA\":0,\"PROJCODE\":null,\"OWNERMNGRCARDTYPE\":\"111\",\"REMARK\":null,\"CERTSTATUS\":1,\"CONPRICE\":2864.28,\"TOTALHAREA\":1894.8,\"PROVINCENUM\":\"甘肃省\",\"OWNERMNGRCARDNO\":\"620105196******30\",\"COUNTYNUM\":\"永昌县\",\"CERTNUM\":\"620321202112230101\",\"PROJSCALE\":\"总建筑面积1894.8平方米\",\"OWNERMNGR\":\"马兴中\",\"ISSUDATE\":\"20211223\",\"PROJOWNERCODETYPE\":\"001\",\"RISSUAUTH\":null,\"PRJNUM\":null,\"TOTALAHAREA\":1894.8,\"PROJLOC\":\"金昌发电公司一厂厂区内\",\"FILEPATH\":\"1.2.156.3005.2.11100000000013338W009.11620321013910935J.2021122301.001.U.ofd\",\"RN\":1,\"ROW_GU\":\"a76f0e6693814804b2e6c6e6d5eddbc6\",\"ISSUAUTH\":\"永昌县住房和城乡建设局\"},{\"PROJOWNER\":\"国网甘肃省电力公司永昌县供电公司\",\"ISSUAUTHCODE\":\"11620321013910935J\",\"PCOMPDATE\":\"2021-12-30\",\"CITYNUM\":\"金昌市\",\"PSTARTDATE\":\"2021-09-10\",\"ANNEXREMARK\":null,\"PROJNAME\":\"国网甘肃金昌永昌县供电公司物资仓储点新建项目\",\"PRJTYPENUM\":\"房屋建筑工程\",\"ECERTID\":\"1.2.156.3005.2.11100000000013338W009.11620321013910935J.2021122102.001.V\",\"PROJOWNERCODE\":\"916203213322091859\",\"TOTALUHAREA\":0,\"PROJCODE\":null,\"OWNERMNGRCARDTYPE\":\"111\",\"REMARK\":null,\"CERTSTATUS\":1,\"CONPRICE\":230.34,\"TOTALHAREA\":795.32,\"PROVINCENUM\":\"甘肃省\",\"OWNERMNGRCARDNO\":\"620321197******39\",\"COUNTYNUM\":\"永昌县\",\"CERTNUM\":\"620321202112210201\",\"PROJSCALE\":\"总建筑面积795.32平方米\",\"OWNERMNGR\":\"孙致能\",\"ISSUDATE\":\"20211221\",\"PROJOWNERCODETYPE\":\"001\",\"RISSUAUTH\":null,\"PRJNUM\":null,\"TOTALAHAREA\":795.32,\"PROJLOC\":\"永昌县焦家庄变电站院内\",\"FILEPATH\":\"1.2.156.3005.2.11100000000013338W009.11620321013910935J.2021122102.001.V.ofd\",\"RN\":2,\"ROW_GU\":\"1cfcf033d64b4502bc3643662ee4acca\",\"ISSUAUTH\":\"永昌县住房和城乡建设局\"},{\"PROJOWNER\":\"国网甘肃省电力公司永昌县供电公司\",\"ISSUAUTHCODE\":\"11620321013910935J\",\"PCOMPDATE\":\"2021-12-30\",\"CITYNUM\":\"金昌市\",\"PSTARTDATE\":\"2021-09-10\",\"ANNEXREMARK\":null,\"PROJNAME\":\"国网甘肃金昌永昌县供电公司特种车库新建项目\",\"PRJTYPENUM\":\"房屋建筑工程\",\"ECERTID\":\"1.2.156.3005.2.11100000000013338W009.11620321013910935J.2021122101.001.A\",\"PROJOWNERCODE\":\"916203213322091859\",\"TOTALUHAREA\":0,\"PROJCODE\":null,\"OWNERMNGRCARDTYPE\":\"111\",\"REMARK\":null,\"CERTSTATUS\":1,\"CONPRICE\":76.35,\"TOTALHAREA\":239.32,\"PROVINCENUM\":\"甘肃省\",\"OWNERMNGRCARDNO\":\"620321197******39\",\"COUNTYNUM\":\"永昌县\",\"CERTNUM\":\"620321202112210101\",\"PROJSCALE\":\"总建筑面积239.32平方米\",\"OWNERMNGR\":\"孙致能\",\"ISSUDATE\":\"20211221\",\"PROJOWNERCODETYPE\":\"001\",\"RISSUAUTH\":null,\"PRJNUM\":null,\"TOTALAHAREA\":239.32,\"PROJLOC\":\"永昌县东寨供电所院内\",\"FILEPATH\":\"1.2.156.3005.2.11100000000013338W009.11620321013910935J.2021122101.001.A.ofd\",\"RN\":3,\"ROW_GU\":\"1da268e1b5e74894b44f2154b24b98e7\",\"ISSUAUTH\":\"永昌县住房和城乡建设局\"},{\"PROJOWNER\":\"金川集团镍盐有限公司\",\"ISSUAUTHCODE\":\"116203000139091250\",\"PCOMPDATE\":\"2022-05-31\",\"CITYNUM\":\"金昌市\",\"PSTARTDATE\":\"2021-07-15\",\"ANNEXREMARK\":null,\"PROJNAME\":\"金川集团镍盐有限公司重金属废水处理项目\",\"PRJTYPENUM\":\"其他\",\"ECERTID\":\"1.2.156.3005.2.11100000000013338W009.11620300MB1D47849P.2022011404.001.X\",\"PROJOWNERCODE\":\"91620300296793256J\",\"TOTALUHAREA\":250.19,\"PROJCODE\":null,\"OWNERMNGRCARDTYPE\":\"111\",\"REMARK\":null,\"CERTSTATUS\":1,\"CONPRICE\":2047,\"TOTALHAREA\":3787.29,\"PROVINCENUM\":\"甘肃省\",\"OWNERMNGRCARDNO\":\"620121198******13\",\"COUNTYNUM\":null,\"CERTNUM\":\"620301202201140199\",\"PROJSCALE\":\"总建筑面积3787.29平方米\",\"OWNERMNGR\":\"张国永\",\"ISSUDATE\":\"20220114\",\"PROJOWNERCODETYPE\":\"001\",\"RISSUAUTH\":null,\"PRJNUM\":null,\"TOTALAHAREA\":3787.29,\"PROJLOC\":\"甘肃省金昌市金川集团股份有限公司二厂 区金川集团镍盐有限公司原料场院内\",\"FILEPATH\":\"1.2.156.3005.2.11100000000013338W009.11620300MB1D47849P.2022011404.001.X.ofd\",\"RN\":4,\"ROW_GU\":\"ec904c0b37f7460d981ca4c32eb2427e\",\"ISSUAUTH\":\"金昌经济技术开发区管理委员会\"},{\"PROJOWNER\":\"金昌昶瑞源商贸有限公司\",\"ISSUAUTHCODE\":\"116203000139091250\",\"PCOMPDATE\":\"2021-11-20\",\"CITYNUM\":\"金昌市\",\"PSTARTDATE\":\"2021-07-20\",\"ANNEXREMARK\":null,\"PROJNAME\":\"4S店建设项目\",\"PRJTYPENUM\":\"房屋建筑工程\",\"ECERTID\":\"1.2.156.3005.2.11100000000013338W009.11620300MB1D47849P.2021110801.001.L\",\"PROJOWNERCODE\":\"91620302MA73LHUUXB\",\"TOTALUHAREA\":0,\"PROJCODE\":null,\"OWNERMNGRCARDTYPE\":\"111\",\"REMARK\":null,\"CERTSTATUS\":1,\"CONPRICE\":380,\"TOTALHAREA\":2222.6,\"PROVINCENUM\":\"甘肃省\",\"OWNERMNGRCARDNO\":\"622925199******84\",\"COUNTYNUM\":null,\"CERTNUM\":\"620301202111080101\",\"PROJSCALE\":\"总建筑面积2222.6平方米\",\"OWNERMNGR\":\"梁帆\",\"ISSUDATE\":\"20211108\",\"PROJOWNERCODETYPE\":\"001\",\"RISSUAUTH\":null,\"PRJNUM\":null,\"TOTALAHAREA\":2222.6,\"PROJLOC\":\"金昌市金川区泰安路35号\",\"FILEPATH\":\"1.2.156.3005.2.11100000000013338W009.11620300MB1D47849P.2021110801.001.L.ofd\",\"RN\":5,\"ROW_GU\":\"f93ac0812d4f446682f24633662b2aff\",\"ISSUAUTH\":\"金昌经济技术开发区管理委员会\"},{\"PROJOWNER\":\"金昌市钰恒实业有限公司\",\"ISSUAUTHCODE\":\"116203000139091250\",\"PCOMPDATE\":\"2022-03-31\",\"CITYNUM\":\"金昌市\",\"PSTARTDATE\":\"2021-07-16\",\"ANNEXREMARK\":null,\"PROJNAME\":\"年产无水氯化铁、液体氯化铁、间羟基苯甲酸、甲基磺酸、六氯环三磷腈项目\",\"PRJTYPENUM\":\"房屋建筑工程\",\"ECERTID\":\"1.2.156.3005.2.11100000000013338W009.11620300MB1D47849P.2021101902.001.W\",\"PROJOWNERCODE\":\"91620300352573427K\",\"TOTALUHAREA\":0,\"PROJCODE\":null,\"OWNERMNGRCARDTYPE\":\"111\",\"REMARK\":null,\"CERTSTATUS\":1,\"CONPRICE\":1600,\"TOTALHAREA\":14492.33,\"PROVINCENUM\":\"甘肃省\",\"OWNERMNGRCARDNO\":\"370223197******17\",\"COUNTYNUM\":null,\"CERTNUM\":\"620301202110190101\",\"PROJSCALE\":\"总建筑面积14492.33平方米\",\"OWNERMNGR\":\"鲍伟\",\"ISSUDATE\":\"20211019\",\"PROJOWNERCODETYPE\":\"001\",\"RISSUAUTH\":null,\"PRJNUM\":null,\"TOTALAHAREA\":14492.33,\"PROJLOC\":\"南环路以北，纵六路以东，横四路以南\",\"FILEPATH\":\"1.2.156.3005.2.11100000000013338W009.11620300MB1D47849P.2021101902.001.W.ofd\",\"RN\":6,\"ROW_GU\":\"a926711647894fd3bb74fe2931bf1471\",\"ISSUAUTH\":\"金昌经济技术开发区管理委员会\"},{\"PROJOWNER\":\"金昌高能环境技术有限公司\",\"ISSUAUTHCODE\":\"116203000139091250\",\"PCOMPDATE\":\"2022-12-31\",\"CITYNUM\":\"金昌市\",\"PSTARTDATE\":\"2021-08-01\",\"ANNEXREMARK\":null,\"PROJNAME\":\"低镍高硫阳极泥及含铜含镍固危废资源综合利用项目\",\"PRJTYPENUM\":\"房屋建筑工程\",\"ECERTID\":\"1.2.156.3005.2.11100000000013338W009.11620300MB1D47849P.2021101204.002.2\",\"PROJOWNERCODE\":\"91620000MA73G5CXX6\",\"TOTALUHAREA\":0,\"PROJCODE\":null,\"OWNERMNGRCARDTYPE\":\"111\",\"REMARK\":null,\"CERTSTATUS\":1,\"CONPRICE\":4358,\"TOTALHAREA\":18393.3,\"PROVINCENUM\":\"甘肃省\",\"OWNERMNGRCARDNO\":\"372402197******1X\",\"COUNTYNUM\":null,\"CERTNUM\":\"620301202110120101\",\"PROJSCALE\":\"总建筑面积18393.3平方米\",\"OWNERMNGR\":\"刘长青\",\"ISSUDATE\":\"20211012\",\"PROJOWNERCODETYPE\":\"001\",\"RISSUAUTH\":null,\"PRJNUM\":null,\"TOTALAHAREA\":18393.3,\"PROJLOC\":\"金昌经济技术开发区甘肃电投金昌发电有限责任公司南侧\",\"FILEPATH\":\"1.2.156.3005.2.11100000000013338W009.11620300MB1D47849P.2021101204.002.2.ofd\",\"RN\":7,\"ROW_GU\":\"0b5f0abe68f74300a3ceabbc01177c99\",\"ISSUAUTH\":\"金昌经济技术开发区管理委员会\"},{\"PROJOWNER\":\"甘肃弘建领航建设有限责任公司\",\"ISSUAUTHCODE\":\"116203000139091250\",\"PCOMPDATE\":\"2023-05-19\",\"CITYNUM\":\"金昌市\",\"PSTARTDATE\":\"2021-05-20\",\"ANNEXREMARK\":null,\"PROJNAME\":\"金昌市第九小学建设项目\",\"PRJTYPENUM\":\"房屋建筑工程\",\"ECERTID\":\"1.2.156.3005.2.11100000000013338W009.116203000139091250.2021123001.001.D\",\"PROJOWNERCODE\":\"91620302MA742CPD2M\",\"TOTALUHAREA\":3009.31,\"PROJCODE\":null,\"OWNERMNGRCARDTYPE\":\"111\",\"REMARK\":null,\"CERTSTATUS\":1,\"CONPRICE\":9204.1,\"TOTALHAREA\":16094.5,\"PROVINCENUM\":\"甘肃省\",\"OWNERMNGRCARDNO\":\"620102198******35\",\"COUNTYNUM\":null,\"CERTNUM\":\"620300202112300201\",\"PROJSCALE\":\"总建筑面积16094.5平方米\",\"OWNERMNGR\":\"罗震\",\"ISSUDATE\":\"20211230\",\"PROJOWNERCODETYPE\":\"001\",\"RISSUAUTH\":null,\"PRJNUM\":null,\"TOTALAHAREA\":13085.19,\"PROJLOC\":\"金昌市金川区纵八路和重庆路交界口\",\"FILEPATH\":\"1.2.156.3005.2.11100000000013338W009.116203000139091250.2021123001.001.D.ofd\",\"RN\":8,\"ROW_GU\":\"f4e83067816443f58408f66a07d32c0b\",\"ISSUAUTH\":\"金昌市住房和城乡建设局\"},{\"PROJOWNER\":\"甘肃弘建领航建设有限责任公司\",\"ISSUAUTHCODE\":\"116203000139091250\",\"PCOMPDATE\":\"2023-05-19\",\"CITYNUM\":\"金昌市\",\"PSTARTDATE\":\"2021-05-20\",\"ANNEXREMARK\":null,\"PROJNAME\":\"金昌市第六中学拆除重建项目\",\"PRJTYPENUM\":\"房屋建筑工程\",\"ECERTID\":\"1.2.156.3005.2.11100000000013338W009.116203000139091250.2021123003.001.I\",\"PROJOWNERCODE\":\"91620302MA742CPD2M\",\"TOTALUHAREA\":2815,\"PROJCODE\":null,\"OWNERMNGRCARDTYPE\":\"111\",\"REMARK\":null,\"CERTSTATUS\":1,\"CONPRICE\":9879.93,\"TOTALHAREA\":23963,\"PROVINCENUM\":\"甘肃省\",\"OWNERMNGRCARDNO\":\"620102198******35\",\"COUNTYNUM\":null,\"CERTNUM\":\"620300202112300101\",\"PROJSCALE\":\"总建筑面积23963平方米\",\"OWNERMNGR\":\"罗震\",\"ISSUDATE\":\"20211230\",\"PROJOWNERCODETYPE\":\"001\",\"RISSUAUTH\":null,\"PRJNUM\":null,\"TOTALAHAREA\":21148,\"PROJLOC\":\"金昌市金川区\",\"FILEPATH\":\"1.2.156.3005.2.11100000000013338W009.116203000139091250.2021123003.001.I.ofd\",\"RN\":9,\"ROW_GU\":\"ca55cff8da664022a17fc752b8a20ca3\",\"ISSUAUTH\":\"金昌市住房和城乡建设局\"},{\"PROJOWNER\":\"互助土族自治县文体旅游局\",\"ISSUAUTHCODE\":\"116321260150303174\",\"PCOMPDATE\":\"2020-11-12\",\"CITYNUM\":\"海东市\",\"PSTARTDATE\":\"2019-07-01\",\"ANNEXREMARK\":null,\"PROJNAME\":\"互助县三馆外环境建设项目\",\"PRJTYPENUM\":\"房屋建筑工程\",\"ECERTID\":\"1.2.156.3005.2.11100000000013338W009.116321260150303174.2022012401.001.R\",\"PROJOWNERCODE\":\"11632126015030229M\",\"TOTALUHAREA\":0,\"PROJCODE\":null,\"OWNERMNGRCARDTYPE\":\"111\",\"REMARK\":\"补\",\"CERTSTATUS\":1,\"CONPRICE\":1853.159443,\"TOTALHAREA\":0,\"PROVINCENUM\":\"青海省\",\"OWNERMNGRCARDNO\":null,\"COUNTYNUM\":\"互助土族自治县\",\"CERTNUM\":\"630223202201240101\",\"PROJSCALE\":\"0平方米\",\"OWNERMNGR\":\"贺成武\",\"ISSUDATE\":\"20220124\",\"PROJOWNERCODETYPE\":\"001\",\"RISSUAUTH\":null,\"PRJNUM\":null,\"TOTALAHAREA\":0,\"PROJLOC\":\"吐谷浑广场\",\"FILEPATH\":\"1.2.156.3005.2.11100000000013338W009.116321260150303174.2022012401.001.R.ofd\",\"RN\":10,\"ROW_GU\":\"422dc0d105334c38aa0b7e7fb1066f7d\",\"ISSUAUTH\":\"互助县住房和城乡建设局\"},{\"PROJOWNER\":\"云南金马集团丽江大研农场实业有限责任公司\",\"ISSUAUTHCODE\":\"115332000152726584\",\"PCOMPDATE\":\"2022-03-20\",\"CITYNUM\":\"丽江市\",\"PSTARTDATE\":\"2022-01-20\",\"ANNEXREMARK\":null,\"PROJNAME\":\"云南金马集团丽江大研农场实业有限责任公司康体中心建设项目室外附属及景观绿化工程\",\"PRJTYPENUM\":\"房屋建筑工程\",\"ECERTID\":\"1.2.156.3005.2.11100000000013338W009.115332000152726584.2022012424.001.I\",\"PROJOWNERCODE\":\"91530700584820212E\",\"TOTALUHAREA\":0,\"PROJCODE\":null,\"OWNERMNGRCARDTYPE\":null,\"REMARK\":null,\"CERTSTATUS\":1,\"CONPRICE\":204.5559,\"TOTALHAREA\":2000,\"PROVINCENUM\":\"云南省\",\"OWNERMNGRCARDNO\":\"533221197******37\",\"COUNTYNUM\":\"古城区\",\"CERTNUM\":\"530700202201240102\",\"PROJSCALE\":\"室外附属景观及绿化\",\"OWNERMNGR\":\"陈达荣\",\"ISSUDATE\":\"20220124\",\"PROJOWNERCODETYPE\":\"001\",\"RISSUAUTH\":\"530000\",\"PRJNUM\":\"5307001902200101\",\"TOTALAHAREA\":0,\"PROJLOC\":\"象山西路与雪山路交叉口东南角\",\"FILEPATH\":\"1.2.156.3005.2.11100000000013338W009.115332000152726584.2022012424.001.I.ofd\",\"RN\":11,\"ROW_GU\":\"7fdee9f614304a2585aaf036ff37f937\",\"ISSUAUTH\":\"丽江市住房和城乡建设局\"},{\"PROJOWNER\":\"怒江州妇幼保健计划生育服务中心\",\"ISSUAUTHCODE\":\"11533321015281984Y\",\"PCOMPDATE\":\"2021-07-18\",\"CITYNUM\":\"怒江傈僳族自治州\",\"PSTARTDATE\":\"2020-12-01\",\"ANNEXREMARK\":null,\"PROJNAME\":\"怒江州妇幼保健院建设项目设计施工总承包（EPC）招标\",\"PRJTYPENUM\":\"房屋建筑工程\",\"ECERTID\":\"1.2.156.3005.2.11100000000013338W009.11533321015281984Y.2022012422.001.W\",\"PROJOWNERCODE\":\"12533300432965201K\",\"TOTALUHAREA\":0,\"PROJCODE\":null,\"OWNERMNGRCARDTYPE\":null,\"REMARK\":null,\"CERTSTATUS\":1,\"CONPRICE\":6500,\"TOTALHAREA\":19843.72,\"PROVINCENUM\":\"云南省\",\"OWNERMNGRCARDNO\":\"533321197******27\",\"COUNTYNUM\":null,\"CERTNUM\":\"533301202201240401\",\"PROJSCALE\":\"住院、医技、门诊楼技和辅助设施等功能建设\",\"OWNERMNGR\":\"余志彦\",\"ISSUDATE\":\"20220124\",\"PROJOWNERCODETYPE\":\"001\",\"RISSUAUTH\":\"530000\",\"PRJNUM\":\"5333012009140001\",\"TOTALAHAREA\":19843.72,\"PROJLOC\":\"上江镇新建村大南茂\",\"FILEPATH\":\"1.2.156.3005.2.11100000000013338W009.11533321015281984Y.2022012422.001.W.ofd\",\"RN\":12,\"ROW_GU\":\"39ba5b86207443c5879e9e8429b36dda\",\"ISSUAUTH\":\"泸水市住房和城乡建设局\"},{\"PROJOWNER\":\"怒江投资集团恒悦房地产开发有限公司\",\"ISSUAUTHCODE\":\"11533321015281984Y\",\"PCOMPDATE\":\"2024-04-18\",\"CITYNUM\":\"怒江傈僳族自治州\",\"PSTARTDATE\":\"2021-07-23\",\"ANNEXREMARK\":null,\"PROJNAME\":\"泸水市“同安红庭”商住综合体项目设计-采购-施工一体化（EPC）招标\",\"PRJTYPENUM\":\"房屋建筑工程\",\"ECERTID\":\"1.2.156.3005.2.11100000000013338W009.11533321015281984Y.2022012421.001.B\",\"PROJOWNERCODE\":\"91533321MA6NOL6989\",\"TOTALUHAREA\":36004.57,\"PROJCODE\":null,\"OWNERMNGRCARDTYPE\":null,\"REMARK\":null,\"CERTSTATUS\":1,\"CONPRICE\":41527.47,\"TOTALHAREA\":126760.5,\"PROVINCENUM\":\"云南省\",\"OWNERMNGRCARDNO\":\"532929198******35\",\"COUNTYNUM\":null,\"CERTNUM\":\"533301202201240301\",\"PROJSCALE\":\"范围： ①勘察：完成本建设项目区域范围内的初步勘察、详细勘察、施工勘察、工程测量等，满足工程设计需要，达到工程详细地质勘查报告深度，并提交通过审查机构审查合格的工程勘察报告。工程内容主要包括钻探、原位测试、波速及地微振测试、室内土工试验及勘察报告编制等；②设计：完成本建设项目区域范围内的完善项目建筑方案设计（完善修建性详细规划）、初步设计（含概算编制）、施工图设计（包含建筑单体施工图、室外工程施工图及附属工程施工图，不含二次装修设计费）、全套设计成果资料制作、配合发包人报批报建、专家咨询、施工阶段设计跟踪服务等工作，并根据审图机构的意见完善施工图设计直至取得施工图审图合格书；③施工：完成设计施工图定稿所包括的全部工程土建、安装及相关配套设施施工工作，至工程验收合格。④采购：完成设计施工图定稿所包括的全部设备（电梯、供电设备等）采购及安装，具体以实际任务为准。\",\"OWNERMNGR\":\"何占斌\",\"ISSUDATE\":\"20220124\",\"PROJOWNERCODETYPE\":\"001\",\"RISSUAUTH\":\"530000\",\"PRJNUM\":\"5333212012110011\",\"TOTALAHAREA\":91755.37,\"PROJLOC\":\"六库镇\",\"FILEPATH\":\"1.2.156.3005.2.11100000000013338W009.11533321015281984Y.2022012421.001.B.ofd\",\"RN\":13,\"ROW_GU\":\"ab0a830139bd42a7b5538f5883e0ac9f\",\"ISSUAUTH\":\"泸水市住房和城乡建设局\"},{\"PROJOWNER\":\"墨江福鑫商贸有限公司\",\"ISSUAUTHCODE\":\"115327230151099814\",\"PCOMPDATE\":\"2022-06-30\",\"CITYNUM\":\"普洱市\",\"PSTARTDATE\":\"2022-01-18\",\"ANNEXREMARK\":null,\"PROJNAME\":\"墨江福鑫汽车交易市场\",\"PRJTYPENUM\":\"房屋建筑工程\",\"ECERTID\":\"1.2.156.3005.2.11100000000013338W009.115327230151099814.2022012417.001.V\",\"PROJOWNERCODE\":\"91530822MA6Q93J856\",\"TOTALUHAREA\":0,\"PROJCODE\":null,\"OWNERMNGRCARDTYPE\":null,\"REMARK\":null,\"CERTSTATUS\":1,\"CONPRICE\":200,\"TOTALHAREA\":3909.18,\"PROVINCENUM\":\"云南省\",\"OWNERMNGRCARDNO\":\"532225198******15\",\"COUNTYNUM\":\"墨江哈尼族自治县\",\"CERTNUM\":\"530822202201240201\",\"PROJSCALE\":\"总建筑面积：3909.18㎡，最大地下室面积：0.00㎡ ，其中1#建筑面积：1635.98㎡，2#建筑面积：1211.98㎡，3#建筑面积：1061.22㎡.建筑设计使用年限50年，抗震设防烈度7度。\",\"OWNERMNGR\":\"张玉林\",\"ISSUDATE\":\"20220124\",\"PROJOWNERCODETYPE\":\"001\",\"RISSUAUTH\":\"530000\",\"PRJNUM\":\"5308222201220040\",\"TOTALAHAREA\":3909.18,\"PROJLOC\":\"云南省普洱市墨江县联珠镇赖蚌街子\",\"FILEPATH\":\"1.2.156.3005.2.11100000000013338W009.115327230151099814.2022012417.001.V.ofd\",\"RN\":14,\"ROW_GU\":\"d898b5bf88144ec8b58e2617389d5d56\",\"ISSUAUTH\":\"墨江哈尼族自治县住房和城乡建设局\"},{\"PROJOWNER\":\"温州市瓯海新城建设集团有限公司\",\"ISSUAUTHCODE\":\"1133030400252705X0\",\"PCOMPDATE\":\"2022年11月21日\",\"CITYNUM\":\"温州市\",\"PSTARTDATE\":\"2022年01月25日\",\"ANNEXREMARK\":null,\"PROJNAME\":\"瓯海梧田东单元D-20公园工程—配套用房\",\"PRJTYPENUM\":\"房屋建筑工程\",\"ECERTID\":\"1.2.156.3005.2.11100000000013338W009.1133030400252705X0.2022012402.001.L\",\"PROJOWNERCODE\":\"91330304591781418N\",\"TOTALUHAREA\":6540,\"PROJCODE\":\"2104-330304-04-01-420953\",\"OWNERMNGRCARDTYPE\":\"111\",\"REMARK\":\"多合一施工许可证书（含建筑工程施工许可、建设工程质量监督手续、建设工程消防设计审查）。\",\"CERTSTATUS\":1,\"CONPRICE\":5796.32,\"TOTALHAREA\":7663,\"PROVINCENUM\":\"浙江省\",\"OWNERMNGRCARDNO\":\"330304198******13\",\"COUNTYNUM\":\"瓯海区\",\"CERTNUM\":\"330304202201240201\",\"PROJSCALE\":\"面积：7663.00平方米\",\"OWNERMNGR\":\"张克强\",\"ISSUDATE\":\"20220124\",\"PROJOWNERCODETYPE\":\"001\",\"RISSUAUTH\":\"温州市瓯海区\",\"PRJNUM\":\"3303042201240101\",\"TOTALAHAREA\":1123,\"PROJLOC\":\"浙江省温州市瓯海区新桥街道（原温州市园林绿化养护大队用地）第一幢二楼1203、1204室\",\"FILEPATH\":\"1.2.156.3005.2.11100000000013338W009.1133030400252705X0.2022012402.001.L.ofd\",\"RN\":15,\"ROW_GU\":\"e0948e1a2dd74b95a5ed5e5290b5393c\",\"ISSUAUTH\":\"温州市瓯海区住房和城乡建设局\"}],\"pageNum\":0,\"pageSize\":15,\"total\":49368},\"message\":\"\",\"success\":true}")
	//c := make([]byte, aes.BlockSize+len(plaintext))
	//iv := c[:aes.BlockSize]
	//加密
	ciphertext, err := AesEncrypt(plaintext, key, iv)
	if err != nil {
		panic(err)
	}

	//打印加密base64后密码
	encodeString := base64.StdEncoding.EncodeToString(ciphertext)
	fmt.Println(encodeString)
	toString := hex.EncodeToString(ciphertext)
	fmt.Println(toString)

	//解密
	plaintext, err = AesDecrypt(ciphertext, key, iv)
	if err != nil {
		panic(err)
	}

	//打印解密明文
	fmt.Println(string(plaintext))

}
